package com.frt.sygang.config;/**
 * Created by 冯瑞涛 on 2022/9/17 18:37
 */

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 冯瑞涛
 * @version 1.0
 * @date 2022/9/17 18:37
 */
@Configuration
public class MybatisPlusConfig {
    @Bean
    public MybatisPlusInterceptor page() {
        MybatisPlusInterceptor plusInterceptor = new MybatisPlusInterceptor();
        plusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor());
        return plusInterceptor;
    }
}
